package org.germinus.cardea.MuleServiceBundle.components;

import java.io.Serializable;

public class StockString implements Serializable{
	private static final long serialVersionUID = 7010138636008560022L;

    private String medicineType;

    public StockString()
    {
        this.medicineType = null;
    }
    
    public StockString(String type)
    {
        this.medicineType = type;
    }

    /**
     * @return Returns the name.
     */
    public String getMedicineType()
    {
        return medicineType;
    }

    /**
     * @param name The name to set.
     */
    public void setMedicineType(String type)
    {
        this.medicineType = type;
    }

    public boolean isValid()
    {
        return medicineType != null && medicineType.length() > 0;
    }
}
